package com.xusheng.cli.controller.back;

import com.xusheng.cli.service.PaymentChannelService;
import com.xusheng.cli.service.WithdrawService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.TreeMap;

@RestController
@RequestMapping("/api/v1/fakapay")
@Slf4j
public class FakapayNotifyController {

    @Resource
    private PaymentChannelService paymentChannelService;
    @Resource
    private WithdrawService withdrawService;

    @RequestMapping("/paynotify")
    public Object payNotify(@RequestBody TreeMap<String, String> reqParam) {

        return withdrawService.payNotify(reqParam);

    }
}
